/**************************************************************************
 * @doc rcptcmpt
 * @module rcptcmpt.C 
 * Include file for the Receipt Segment Module. 
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   Bruce Girdlestone
 * <nl>Notes       :
 *
 * @head3 RCPTCMPT Functions |
 * @index | RCPTCMPT
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 * $log: \softpay\SPK2SIM\SOURCE\rcptcmpt.h $
 * ------------------------------------------------------------------------
 ********************************************************************************/

typedef struct RECEIPT_FORM_REC
{
	short inFormIdentifier;
	short  inBatchHostIndex;
	unsigned char szHostName[15];
	short  inSegmentIds[20];

} RECEIPT_FORM_REC_struc;



typedef struct RECEIPT_FORM
{
	int inRecNum;
	short  inBatchHostIndex;
	unsigned char szHostName[15];

} RECEIPT_FORM_struc;

//jrd
//#define MAX_FORM_RECORDS 92
#define MAX_FORM_RECORDS 95
#define MAX_RECEIPT_FORMS_FLEXI_SIZE  ((4 + sizeof(RECEIPT_FORM_struc)) * MAX_FORM_RECORDS)

#define RECEIPT_FORMS_TABLE  "RFM.DAT"


/*       Adds the default print segment functions into the Run Engine
*		Flexi-Record.  Here, we also create a FLEXI-RECORD that as used as
*		index into the receipt forms table RCPTCMPT.DAT. 
*/
int inAddFormFunctions(void);


/*       This function is called to run the set of functions associated with a
*		specific Form. 
*/
int inRunFormSegments(TRANSACTION_OBJECT * tranObject,int inFormIdentifier);

int RCPTCMPT_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);

